<?php 
$page_group_id=$_GET['group_id'];
if($page_group_id==2 || $page_group_id==1) 
{
	$id=$_GET['id'];
	$row=Page::fetch_page_by_id($id);
	$link="page=_update-by-id&id=$id";
	$page_title=$row['page_title'];	
}
else 
{
	$row=Page::fetch_page_by_name($page);
	$link="page=_update-by-name&name=$page";
	$page_title=Page::fetch_page_title_in_constant($page);
}
$page_content=$row['page_content'];
?>

<style>
.post .post-title{padding-top: 42px}
</style>

<div class="post hentry uncustomized-post-template">
<div class="post_bottom">
<h2 class="post-title entry-title"></h2>
<div class="post_date"><?php echo $page_title;?></div>
<div class="entry i-update" link='<?php echo $link?>' >
	
	<?php echo $page_content;?>
	
</div>
<div class="read_comments"><a href="#body">Về đầu trang</a></div>
</div>
</div>